package designpattern.Builder.demo01;

/**
 * @author cyt
 * @create 2020-04-24 14:24
 */
public class Director {
    public Product build(builder builder) {
        // 按照顺序建造房子
        builder.builderA();
        builder.builderB();
        builder.builderC();
        builder.builderD();
        return builder.getProduct();
    }
}
